Platform Explorer / Nuxeo Platform 2021.48

Contribution org.nuxeo.salesforce.business-metadata--operation

This contribution is part of XML component org.nuxeo.salesforce.business-metadata inside nuxeo-salesforce-core-2021.2.0.jar /OSGI-INF/business-metadata.xml

Extension Point

Extension point operation of component AutomationScriptingComponent.

Registration Order

1
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <scriptedOperation id="Salesforce.RenderBusinessMetadata">
          <inputType>document</inputType>
          <outputType>blob</outputType>
          <category>Salesforce</category>
    	  <param name="lang" type="String"/>
    	        
          <script>
            <![CDATA[function run(input, params) {
            	// push the client language in the context
            	ctx.SALESFORCE_LANG = params.lang;
            	var blob = Render.Document(input, {
            		template: 'template:salesforce-business-metadata'        		
            	});
            	
            	return blob.getString(); // return the html fragment as a string
            }]]>
          </script>
        </scriptedOperation>

XML Source

<extension point="operation" target="org.nuxeo.automation.scripting.internals.AutomationScriptingComponent">

	<!--
	An operation which is generating a HTML fragment displaying the business metadata    
	-->
    <scriptedOperation id="Salesforce.RenderBusinessMetadata">
      <inputType>document</inputType>
      <outputType>blob</outputType>
      <category>Salesforce</category>
	  <param name="lang" type="String"/>
	        
      <script>
        <![CDATA[function run(input, params) {
        	// push the client language in the context
        	ctx.SALESFORCE_LANG = params.lang;
        	var blob = Render.Document(input, {
        		template: 'template:salesforce-business-metadata'        		
        	});
        	
        	return blob.getString(); // return the html fragment as a string
        }]]>
      </script>
    </scriptedOperation>
  </extension>